package com.zbf.consumer.client;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作者：LCG
 * 创建时间：2019/3/16 23:54
 * 描述：
 */
@RestController
@RequestMapping("test1")
public class TestEurekaClient {

    @Autowired
    private TestClient testClient;

   @RequestMapping("/test02/{id}")
   public String test01(@RequestParam(name="ok",required = false) String ok){
       System.out.println ("---client---"+ok);
       return testClient.test01 ( "123456中国万岁！"+ok );
   }

   @RequestMapping("/test22")
   public String test21(){

       return testClient.test11 ( "123456中国万岁！" );
   }

}
